<?php

namespace App\Services\Warehouse\Model;

use App\Models\Administrator;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;

class PartsOperation  extends Model
{
    //新品入库
    public const STATE_NEW_PRODUCT = 1;
    //入库
    public const STATE_RUKU = 2;
    //领用
    public const STATE_RECEIVE = 3;
    //归还
    public const STATE_GIVE_BACK = 4;
    //修模
    public const STATE_OUT_REPAIR = 5;
    //设置需要修模
    public const STATE_NEED_REPAIR = 6;
    //修模归还
    public const STATE_COME_BACK_REPAIR = 7;
    //调仓
    public const STATE_AMEND_POSITION = 8;
    //报废
    public const STATE_SCRAP = 9;
    

    protected $table = 'k_parts_operation';

    protected $fillable = [
        'parts_id', 'description','state','user_id','equipment_id'
    ];
}
